package com.周阳.中介者模式.智能家居案例;

/**
 * 抽象中介者类的创建
 */
public abstract class Mediator {
    //把具体同事类注册到中介者内部，由中介者来同一管理这些同事类
    public abstract void Register(String colleagueName, Colleague colleague);

    //接收消息, 具体的同事对象发出
    public abstract void GetMessage(int stateChange, String colleagueName);

    public abstract void SendMessage();
}
